#ifndef ENEMY_6_H
#define ENEMY_6_H

#include <QtGui>
#include "collisia_control.h"
#include "cash.h"

class ENEMY_6 : public QGraphicsObject
{
    Q_OBJECT

    QPainterPath *border;
    QPixmap *im;

    QGraphicsItemAnimation *anim_enemy;
    QTimeLine *enemy_time_line;

    QPoint fp_left;
    QPoint fp_right;

    int angle_attacks;

    bool i_state_in_left;

    COLLISIA_CONTROL *collisia_control;

    int point;

    SOUND_POWER *go;

    CASH *cash;

public:

    explicit ENEMY_6(SCENE *scene, QTimeLine *global_tl, CASH *cash);

    QPainterPath shape() const;

    QRectF boundingRect() const;

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);

    ~ENEMY_6();

    int type() const;

signals:

    void Fire(bool razbros_v_levo,int angle_attack,bool stvol_leviy,QPoint my_coord);

    void Kill_Me_Please(QGraphicsObject *);
    
public slots:

    void Waiting_To_Fire(qreal r);
    void Damage_Detected(QPointF a,int d);

    void slot_set_shape();
    
};

#endif // ENEMY_6_H
